import request from '@/utils/request'

// 查询班级-监控视频关系列表
export function listClassCamera(query) {
  return request({
    url: '/tongban/classCamera/list',
    method: 'get',
    params: query
  })
}

// 查询班级-监控视频关系详细
export function getClassCamera(classCameraId) {
  return request({
    url: '/tongban/classCamera/' + classCameraId,
    method: 'get'
  })
}

// 新增班级-监控视频关系
export function addClassCamera(data) {
  return request({
    url: '/tongban/classCamera',
    method: 'post',
    data: data
  })
}

// 修改班级-监控视频关系
export function updateClassCamera(data) {
  return request({
    url: '/tongban/classCamera',
    method: 'put',
    data: data
  })
}

// 删除班级-监控视频关系
export function delClassCamera(classCameraId) {
  return request({
    url: '/tongban/classCamera/' + classCameraId,
    method: 'delete'
  })
}

// 导出班级-监控视频关系
export function exportClassCamera(query) {
  return request({
    url: '/tongban/classCamera/export',
    method: 'get',
    params: query
  })
}